Skip to content

in_mqtt: added buffer size setting and fixed a leak#9163

Merged
edsiper merged 2 commits intomasterfrom
leonardo-master-issue_9161_fix
Aug 6, 2024
Merged

in_mqtt: added buffer size setting and fixed a leak#9163
edsiper merged 2 commits intomasterfrom
leonardo-master-issue_9161_fix

Conversation

@leonardo-albertovich
Copy link
Contributor

This PR adds an optional setting to the MQTT input plugin named buffer_size which sets the maximum message size.
According to the MQTT standard the protocol can handle messages of up to 256 megabytes, however, to keep the default memory footprint low, the default value has been raised to 2048 bytes (from 1024 bytes).

Additionally, this PR fixes a leak in the protocol handler which triggered when a message did not contain a valid JSON payload.

Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants